package com.mgq.algorithm.graph;

/**
 * @author MaGuangQi
 * 边
 * @date 2022-01-03 21:39
 **/
public class Edge {
    //权重
    int weight;
    //from节点
    Node from;
    //to节点
    Node to;

    public Edge(int weight, Node from, Node to) {
        this.weight = weight;
        this.from = from;
        this.to = to;
    }
}
